import request from '@/config/axios'


export const agentAPI = {
  // 获取会员及代理商总数
  getCountMemberAndProxys: async () => {
    return await request.get({ url: '/package/trade-order/countMemberAndProxys' })
  },
  // 会员地区分布统计
  getCountPackageOrders: async () =>{
    return await request.get({ url: '/package/trade-order/countMemberAreas'})
  },
  // 套餐销量统计
  getCountMemberAreas: async () => {
    return await request.get({ url: '/package/trade-order/countPackageOrders'})
  },
  // 统计每月总销量function 功能销售额  pakege套餐销售额
  getCountMonthOrders: async() =>{
    return await request.get({ url: '/package/trade-order/countMonthOrders'})
  }
}